import javafx.scene.transform.Scale;

import java.util.Scanner;

public class B山里灵活 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long t = sc.nextLong();
        while(t-- != 0) {
            long n, k;
            n = sc.nextLong();
            k = sc.nextLong();
            if(n * 10 >= 7 * 90 * k) {
                System.out.println("SHENLILINHUA WO LAI LA!!!");
            } else {
                System.out.println("SHENLILINHUA DENG DENG WO!!!");
            }
        }
    }
}
